<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs for page util.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="file-name">/admin/scripts/wysiwyg/fckeditor/editor/filemanager/connectors/php/util.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functionConvertToXmlAttribute" id="functionConvertToXmlAttribute"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">ConvertToXmlAttribute</span> (line <span class="line-number">37</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			ConvertToXmlAttribute
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$value</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$value</span>			</li>
				</ul>
		
	
</div>
<a name="functionDetectHtml" id="functionDetectHtml"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">DetectHtml</span> (line <span class="line-number">87</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Detect HTML in the first KB to prevent against potential security issue with  IE/Safari/Opera file type auto detection bug.</p>
<p class="description"><p>Returns true if file contain insecure HTML code at the beginning.</p></p>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			DetectHtml
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filePath</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filePath</span><span class="var-description">: absolute path to file</span>			</li>
				</ul>
		
	
</div>
<a name="functionIsHtmlExtension" id="functionIsHtmlExtension"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">IsHtmlExtension</span> (line <span class="line-number">65</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Check whether given extension is in html etensions list</p>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			IsHtmlExtension
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$ext</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$htmlExtensions</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$ext</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$htmlExtensions</span>			</li>
				</ul>
		
	
</div>
<a name="functionIsImageValid" id="functionIsImageValid"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">IsImageValid</span> (line <span class="line-number">150</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Check file content.</p>
<p class="description"><p>Currently this function validates only image files.  Returns false if file is invalid.</p></p>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			IsImageValid
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filePath</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$extension</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$detectionLevel</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filePath</span><span class="var-description">: absolute path to file</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$extension</span><span class="var-description">: file extension</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$detectionLevel</span><span class="var-description">: 0 = none, 1 = use getimagesize for images, 2 = use DetectHtml for images</span>			</li>
				</ul>
		
	
</div>
<a name="functionRemoveFromEnd" id="functionRemoveFromEnd"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">RemoveFromEnd</span> (line <span class="line-number">31</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			RemoveFromEnd
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$sourceString</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$charToRemove</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$sourceString</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$charToRemove</span>			</li>
				</ul>
		
	
</div>
<a name="functionRemoveFromStart" id="functionRemoveFromStart"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">RemoveFromStart</span> (line <span class="line-number">25</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			RemoveFromStart
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$sourceString</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$charToRemove</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$sourceString</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$charToRemove</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Sat, 03 May 2008 13:40:26 +0300 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>
	</p>
	</div></body>
</html>